$(function(){
			var index = location.href.indexOf("?");
			if(index == -1){
				return;
			}
			var endfix=location.href.substring(index+1);
			$.ajax(
					{
						"url":"http://127.0.0.1:8080/csgo/getServerInfo",
						"data":endfix,
						"type":"post",
						"dataType":"json",
						"success":function(obj){
							if(obj.state==1){
								$("#ipaddress").attr("href","steam://connect/"+obj.ip+":"+obj.port);
								$("#ipaddress").html(obj.ip+":"+obj.port);
								$(".item_float_right").html(obj.players+"/"+obj.maxplayer);
								$(".server_name").html(obj.servername);
								$(".info_line_right").html(obj.map);
								var map=obj.map.replace(/\//g,"_");
								$(".map_image").html('<img class="image_132x99" src="http://image.gametracker.com/images/maps/132x99/csgo/'+map+'.jpg">');
								var list =obj.playerlist;
								for(var i=0;i<list.length;i++){
									var players = '<div class="scrollable_on_c01">'+(i+1)+'</div>'+
									'<div class="scrollable_on_c02">'+list[i]+'</div>'+
									'<div class="item_float_clear"></div>';
									players=$("#myplaylist").html()+players;
									$("#myplaylist").html(players);
								}
							}else if(obj.state==0&&obj.msg!=null){
								$(".server_name").html(obj.msg);
							}else{
								$(".server_name").html("不明觉厉");
							}
						},
						"error":function(){
							$(".server_name").html("服务器维护中");
						}
					}
			);
		}
		)